// @ts-ignore
/* eslint-disable */
import request from '@/libs/request';

/** addCollect POST /api/collect/add */
export async function addCollectUsingPost(
  body: API.CollectAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/collect/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteCollect POST /api/collect/delete */
export async function deleteCollectUsingPost(
  body: API.CollectDeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/collect/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteCollect POST /api/collect/delete */
export async function existCollectUsingGet(
  body: API.CollectDeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/collect/exist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}